const QQMapKey = 'X2BBZ-P6XKB-IPGUL-JVUUO-ZXXSZ-EIFIX';
// #ifdef H5
// 动态加载腾讯地图SDK（仅在H5环境中使用）
const loadQQMapScript = () => {
    return new Promise((resolve, reject) => {
        if (window.qq && window.qq.maps) {
            resolve(window.qq.maps);
            return;
        }
        const script = document.createElement('script');
        script.type = 'text/javascript';
        script.src = `https://map.qq.com/api/js?v=2.exp&key=${QQMapKey}`;
        script.onload = () => resolve(window.qq.maps);
        script.onerror = reject;
        document.head.appendChild(script);
    });
};